package com.cmc.cloud.cmclink.doc.vo.blnovslvoyvo;

import lombok.*;

import java.util.*;

import io.swagger.v3.oas.annotations.media.Schema;
import com.cmes.framework.common.pojo.PageParam;
import org.hibernate.validator.constraints.Length;
import org.springframework.format.annotation.DateTimeFormat;

import java.time.LocalDateTime;

import static com.cmes.framework.common.util.date.DateUtils.FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND;

/**
 * 提单航线船期信息分页 Request VO
 *
 * @author codegen
 */
@Schema(description = "管理后台 - 提单航线船期信息分页 Request VO")
@Data
@EqualsAndHashCode(callSuper = true)
@ToString(callSuper = true)
@AllArgsConstructor
@NoArgsConstructor
public class BlnoVslvoyPageReqVO extends PageParam {

    @Schema(description = "提单主信息id", example = "22851")
    private Long blnoId;

    @Schema(description = "航程序号")
    private Integer routeNo;

    @Schema(description = "船名代码")
    private String vesselCode;

    @Schema(description = "出口航次")
    private String voyageEx;

    @Schema(description = "进口航次")
    private String voyageIm;

    @Schema(description = "装货港代码")
    private String polCode;

    @Schema(description = "卸货港代码")
    private String podCode;

    @Schema(description = "运输模式")
    private String transmode;

    @Schema(description = "出口航线代码")
    private String laneCodeEx;

    @Schema(description = "进口航线代码")
    private String laneCodeIm;

    @Schema(description = "操船方(合作方代码)")
    private String vesselOperator;

    @Schema(description = "指定装货点（从so过来）")
    private String stuffLocEx;

    @Schema(description = "指定卸货堆场（从so过来）")
    private String stuffLocIm;

    @Schema(description = "创建时间")
    @DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND)
    private LocalDateTime[] createTime;

    @Schema(description = "预计离岗时间")
    @Length(max = 20, message = "{blnovslvoy.polEtd.length}")
    private String polEtd;

    @Schema(description = "预计到达时间")
    @Length(max = 20, message = "{blnovslvoy.podEta.length}")
    private String podEta;
}
